<?php /* @var $this Controller */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xmlns:fb="http://ogp.me/ns/fb#">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="language" content="en" />
        <meta name="description" content="<?php echo Yii::app()->params['meta_description'] ?>" />
        <meta name="keywords" content="<?php echo Yii::app()->params['meta_keywords'] ?>" />
        <?php $this->widget('CssWidget'); ?>
        <?php $this->widget('ScriptWidget'); ?>
        <title><?php echo Yii::app()->params['title'] ?> - <?php echo CHtml::encode($this->pageTitle); ?></title>
    </head>
    <body>
        <?php $this->widget('HeaderWidget'); ?>
        <div id="wrapper">
            <?php echo $content; ?>
        </div>
        <?php $this->widget('FooterWidget'); ?>
        <!-- page -->

        <script type="text/javascript">
            $(window).load(function() {
                $('#slider').nivoSlider();	
                $(".flexiselDemo3").flexisel({
                    visibleItems: 5,
                    animationSpeed: 1000,
                    autoPlay: true,
                    autoPlaySpeed: 3000,            
                    pauseOnHover: true,
                    enableResponsiveBreakpoints: true,
                    responsiveBreakpoints: { 
                        portrait: { 
                            changePoint:480,
                            visibleItems: 1
                        }, 
                        landscape: { 
                            changePoint:640,
                            visibleItems: 2
                        },
                        tablet: { 
                            changePoint:768,
                            visibleItems: 3
                        }
                    }
                });
                $(".flexiselDemo4").flexisel({
                    visibleItems: 5,
                    animationSpeed: 1000,
                    autoPlay: true,
                    autoPlaySpeed: 3000,            
                    pauseOnHover: true,
                    enableResponsiveBreakpoints: true,
                    responsiveBreakpoints: { 
                        portrait: { 
                            changePoint:480,
                            visibleItems: 1
                        }, 
                        landscape: { 
                            changePoint:640,
                            visibleItems: 2
                        },
                        tablet: { 
                            changePoint:768,
                            visibleItems: 3
                        }
                    }
                });
            });
    
        </script>
        <script type="text/javascript">
            if(jQuery('#menu').length){
                jQuery('#menu li a').each(function() {
                    if ($($(this))[0].href == String(window.location)) {	
                        $(this).parent().addClass('selected');
                    }
                });
            }
            if(jQuery('#submenu').length){
                jQuery('#submenu li a').each(function() {
                    if ($(this).hasClass('sub-child')) {
                        if ($($(this))[0].href == String(window.location)) {
                            $(this).parent().parent().parent().addClass('selected');
                        }
                    } else {
                        if ($($(this))[0].href == String(window.location)) {
                            $(this).parent().addClass('selected');
                        }
                    }
                });
            }
            if(jQuery('#link_site').length){
                jQuery('#link_site').change(function(){
                    if(jQuery('#link_site').val() !== 0)
                        window.open(jQuery('#link_site').val(),'_blank');
                });
            }
        </script>

    </body>
</html>
